package com.sp.system.user.api.controller;

import com.sp.system.user.core.utils.ContentResult;
import com.sp.system.user.customer.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class DemoController {

    @Autowired
    IUserService userService;

    @PostMapping("/demo")
    public Object demo() {

        return ContentResult.successResult(userService.list(),"菜单查询");
    }
}
